package cn.itsource.pethome.basic.mapper;

import cn.itsource.pethome.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);

    void update(T t);

    void delete(Long id);

    T loadById(Long id);

    List<T> loadAll();

    Long selectCount(BaseQuery query);

    List<T> selectByPage(BaseQuery query);

    void deletes(Long[] ids);
}
